<?php


namespace app\service\model;


class OrderGoodsModel extends BaseModel
{

    protected $table = 'order_goods';

    /**
     * 关联商品
     * @return \think\model\relation\BelongsTo
     */
    public function goods(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(GoodsModel::class, 'goods_id', 'id');
    }
}